#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__author__ = "Administrator"
__name__="generic"
__date__="2016/8/12"
__time__="15:11"
"""
# 定义服务的基类和模板的基类
class BaseService(object):  # 定义服务的基类
    def __init__(self):
        self.name = 'BaseService'
        self.interval = 300
        self.last_time = 0
        self.plugin_name = 'check_your_service'
        self.triggers = {}


class BaseTemplate(object): # 定义模板的基类
    def __init__(self):
        self.name = 'YourTemplateName'
        self.group_name = 'YourGroupName'
        self.hosts = []
        self.serveices = []